package com.newworld.basketballfire.service.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * Created by George on 2019/4/21.
 * Note
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Note {
    private String id;
    private String name;
    private Date date;
    private String content;
    private long createTime;
    private long lastUpdateTime;
    private int version;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getDate() {
        return date;
    }
}
